import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import locale from 'element-ui/lib/locale/lang/zh-CN'; // lang i18n
import axios from 'axios'
import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import jquery from 'jquery'
import * as echarts from 'echarts'
import 'echarts-gl'
Vue.prototype.$echarts = echarts //挂载到Vue实例上面
import '@/icons' // icon
import '@/permission' // permission control
import Print from 'vue-print-nb'
Vue.use(Print); //注册
// 弹出框的时候滚动条隐藏和出现导致页面抖动问题
ElementUI.Dialog.props.lockScroll.default = false;

import dataV from '@jiaminghi/data-view'
// 使用dataV
Vue.use(dataV)
// set ElementUI lang to EN
Vue.use(ElementUI, { locale })

Vue.prototype.$ = jquery
Vue.prototype.$axios = axios;
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
